package Coding.file;

import java.io.File;

public class DeleteDir {
    public static void main(String[] args) {
        File dir = new File("dir");
        if(dir.exists()){
            dir.delete();
          }else {
            System.out.println("目录不存在");
        }
    }

}
